package com.bkhech.spring.security.example.accesstoken.oauth2.dto;

import com.bkhech.spring.security.example.accesstoken.AccessTokenRespDto;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * OAuth2.0 访问令牌的信息 Response dto
 *
 * @author guowm
 * @date 2023/2/1
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class OAuth2AccessTokenRespDto extends AccessTokenRespDto implements Serializable {

    /**
     * 刷新令牌
     */
    private String refreshToken;

    /**
     * 过期时间
     */
    private LocalDateTime expiresTime;
}
